package com.mccree.mapper;

import com.mccree.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

//表示了这是一个mybatis的mapper接口
@Mapper
@Repository
public interface DepartmentMapper {
    //获取全部部门
    List<Department> queryDeptList();
    //根据id获取部门
    Department getDeptById(@Param("id") Integer id);
}
